home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19981211-19990422
/
000145_news@watsun.cc.columbia.edu _Sat Jan 23 13:16:58 1999.msg
< prev
next >
Wrap
Internet Message Format
|
1999-04-21
|
2KB
Return-Path: <news@watsun.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA12525
for <kermit.misc@watsun.cc.columbia.edu>; Sat, 23 Jan 1999 13:16:56 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id NAA01790
for kermit.misc@watsun.cc.columbia.edu; Sat, 23 Jan 1999 13:15:22 -0500 (EST)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: gerlach@netcom.com (Matthew H. Gerlach)
Subject: Re: sleeping for random amounts of time
Message-ID: <gerlachF60yL4.A3t@netcom.com>
Organization: Netcom Online Communications Services (408-241-9760 login: guest)
Date: Sat, 23 Jan 1999 18:12:40 GMT
To: kermit.misc@mailrelay2.cc.columbia.edu
Thank you for the usual prompt and useful answer. The great support
is one of many reasons I use kermit and tell anyone who'll listen to use
kermit.
Most of the time I use Ckermit on a variety of Unix, but when I need to
do something for a PC Kermit95 does the trick.
It sounds to me that I'll get the CKermit 7.0 and give it a go. Will
this function be mentioned in the source code's documentation?
Matthew
In article <78aj0c$oku$1@newsmaster.cc.columbia.edu> fdc@watsun.cc.columbia.edu (Frank da Cruz) writes:
>In article <gerlachF5z4BA.Hwu@netcom.com>,
>Matthew H. Gerlach <gerlach@netcom.com> wrote:
>: I want to write a kermit script to thrash a device I'm working on.
>: In doing so, I want the script to be able to insert random pauses
>: in the data stream.
>:
>: I figured the msleep command would provide the pauses, but I see no
>: builting random() function call or anything like that. I didn't see
>: a relevent posting in a DejaNews search; so I was wondering if anyone
>: had a good idea for generating a random number in a kermit script?
>:
>It depends on the Kermit program and version. Kermit 95 1.1.17 (the
>current version) has a function that returns a random integer within
>the given range.
>
>C-Kermit 7.0, to be announced for testing soon, has this too.
>
>Otherwise you can use something like \fright(\v(ntime),2) (the rightmost
>2 digits of the number of seconds since midnight).
>
>- Frank